home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
doc
/
homepage
/
tutorials
/
lesson7
/
shareeg1
/
shareclick.wrl
< prev
next >
Wrap
Text File
|
1996-08-22
|
820b
|
41 lines
#VRML Draft #3 V2.0 utf8
PROTO Sony_BindSharedNode [
field SFNode transformNode NULL
field SFNode scriptNode NULL
] {}
WorldInfo {
title "VsServer"
info ["VsServer:spiw.com:7004"]
}
DEF SharedObj Transform {
children [
DEF CLICKME TouchSensor {}
DEF ObjShape Shape {
appearance Appearance {
material Material {diffuseColor 1 0 0}
}
geometry Box { }
}
]
}
DEF ScriptForSharedObj Script {
field SFNode sharedobj USE SharedObj
eventIn SFBool touched
eventIn SFString rpc_touched
eventIn SFString rpc_rotateBox
url "shareclick.class"
}
ROUTE CLICKME.isActive TO ScriptForSharedObj.touched
Sony_BindSharedNode {
transformNode USE SharedObj
scriptNode USE ScriptForSharedObj
}